package com.mes.biz.service;

import com.github.pagehelper.PageInfo;
import com.mes.biz.domain.BizOrder;
import com.mes.biz.domain.vo.OrderVo;
import com.mes.common.core.service.BaseService;
import com.mes.biz.domain.BizOrderProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 销售单产品Service接口
 * @author hwg
 * @email hwg
 * @date 2023-05-15
 */
public interface BizOrderProductService extends BaseService<BizOrderProduct> {

    /**
     * 批量删除销售单产品
     * @param ids 需要删除的销售单产品ID集合
     * @return 结果
     */
    public int deleteBizOrderProductByIds(String[] ids);

    public int deleteBizProductByOrderId(String orderId);


    /**
     * 根据订单ID查询产品信息
     * @param orderId
     * @return
     */
    public List<BizOrderProduct> getBizOrderProductByOrderId(String orderId);


    public List<BizOrderProduct> detailList(String orderId);


    List<BizOrderProduct> getProcessDetailList(String orderId, String userId, String planId);


    public boolean updateProcess(List<BizOrderProduct> bizOrderProduct);

    public PageInfo<BizOrderProduct> listOrderProduct(BizOrder bizOrder);

    List<BizOrderProduct> getProductByOrderId(String orderId);
}
